import React from 'react';
import {Layout} from 'antd';
import CommonHeader from './Header';
const {Footer, Sider, Content} = Layout;

const MainLayout = ({children, location}) => {

  return (
    <div>
      <Layout>
        <CommonHeader location={location}>Header</CommonHeader>
        <Content>{children}</Content>
        <Footer>投票管理后台V1.0</Footer>
      </Layout>
    </div>
  );
};

MainLayout.propTypes = {};

export default MainLayout;
